package com.budwk.app.sqfw.services;

import com.budwk.app.sqfw.models.Sqfw_formSummary_new;
import com.budwk.app.sqfw.vo.UserServiceOrderVO;
import com.budwk.starter.common.page.Pagination;
import com.budwk.starter.common.result.Result;
import com.budwk.starter.database.service.BaseService;
import com.budwk.app.sqfw.models.Sqfw_servicerecord;

import java.util.List;
import java.util.Set;

public interface SqfwServicerecordService extends BaseService<Sqfw_servicerecord> {

    /**
     * 根据serviceOrderId查询serviceOrder
     *
     * @param serviceOrderIdList serviceOrderId数组
     * @return 返回serviceOrderVO数据
     */
    List<UserServiceOrderVO> listByServiceOrderIdList(List<String> serviceOrderIdList);

    /**
     * 根据serviceOrderId删除服务记录信息
     *
     * @param serviceOrderId 服务记录
     * @return 结果
     */
    Integer deleteServiceOrderLogic(String serviceOrderId);


    Pagination listServiceRecord(Sqfw_servicerecord bean, int pageNo, int pageSize, boolean isAdmin, String userId);

    Pagination listServiceRecordNew(Sqfw_servicerecord bean, int pageNo, int pageSize, Set<String> roleSet, String userId);

    List<String> listAllServiceOrderType(String unitId);

    Result<?> getTask(String type);

    void afterInsertForSummary(Sqfw_formSummary_new formSummary);
}
